<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>My JSP 'ex9.jsp' starting page</title>
  </head> 
  <body>
    <form action="ex9-check.jsp" method="post">
    	<p>用户名：<input type="text" name="user" size="15"></p>
    	<p>密码：<input type="password" name="pwd" size="15"></p>
    	<p><input type="submit" value="登录">&nbsp;&nbsp;&nbsp;&nbsp;
    	   <input type="reset" value="取消">
    	</p>
    </form>   
  </body>
</html>








